package game.ouroboros.magic;

import android.util.Log;

public class JigokuManager {
	private int mana;

	public static final int UPGRADE_MANA = 500;
	private static final int MAX_MANA = 5000;

	public static final int CREATE_MANA = 1000;

	public JigokuManager(int initialMana) {
		this.mana = initialMana;
	}

	public int getMana() {
		return this.mana;
	}

	public void addMana(int quant) {
		this.mana = (mana + quant > MAX_MANA ? MAX_MANA : mana + quant);
	}

	public boolean canBathery(int quant) {
		return (mana >= quant);
	}

	public void batheryMana(int quant) {
		if (canBathery(quant)) {
			this.mana -= quant;
			Log.v("<MANA>", "GASTOU: " + quant);
		}
	}
}
